import { AxiosPromise } from 'axios'
// @ts-ignore
import request from '/@/utils/request'

const prefix = '/api/dms/admin/'
export const dmsDingLogin: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}dmsDingLogin`, { data })

  // 飞书登录
export const feishuLogin: (data: object) => AxiosPromise = (data) =>
  request('/api/login', { data })
